home *** CD-ROM | disk | FTP | other *** search
- • Basic Text File Type − Acorn have specified field type &FD1 for BASIC
- ASCII text. This is very useful for BASIC programs which are kept in
- !Edit format as it allows the user to define a RunType for them. For
- example, the following command will cause a BASIC text file to be run
- just like a normal BASIC file:
- 4.03
- *Set Alias$@RunType_FD1 Basic-quit |“%0|” %*1
- 4.03
- Jim Markland, Cirencester.
- 4.03
- • Converting old Arthur programs to RISC OS − Before the days of RISC-
- OS, programs running under the old Arthur used a form of reconfigure
- system to adjust the CMOS RAM settings. Now that RISC-OS is available,
- those programs are out of date, and are a pain, as in most cases they
- don’t “Boot-Up” from the desktop.
- 4.03
- RISC-OS uses a different form of reconfiguring. Two in fact − one is
- the WimpSlot command, which tells the computer the minimum and maximum
- amount of memory the program is going to need and the other uses the
- module MemAlloc, found in the !Lander directory on Application disc 2.
- 4.03
- These two things are quite easy to use. The only problem is how to find
- out how much room the program is going to use. This can be discovered
- fairly easily.
- 4.03
- Load up the !Boot file and examine it using the BASIC Editor. What you
- are looking for are a set of commands/variables, which tell the computer
- the amount of SpriteSize/Screensize, etc it is going to need to run. To
- convert this, all you need is the MemAlloc module, and in a run file,
- use MemAlloc to allocate the memory needed for the application.
- 4.03
- Here are some examples:
- 4.03
- Holed Out
- 4.03
- 1. Format a fresh new disc
- 4.03
- 2. Create a new directory called !HoledOut
- 4.03
- 3. Copy all the files on the original Holed Out disc, except the !Boot
- file into the new directory.
- 4.03
- 4. Copy MemAlloc into the !HoledOut directory.
- 4.03
- 5. Use !Edit to create the following Obey file:
- 4.03
- program segment missing
- 4.03
- 6. Load HoledOut 2 into the BASIC Editor and, where the program loads a
- particular file, change it to
- 4.03
- (LoadCommand) <HoledOut$Dir>. (File to be loaded)
- 4.03
- for example
- 4.03
- 70 *RMLOAD BELL
- 4.03
- change to
- 4.03
- 70 *RMLOAD <HoledOut$Dir>.Bell
- 4.03
- and
- 4.03
- 610 CHAIN “HOLEDOUT3”
- 4.03
- change to
- 4.03
- 610 CHAIN “<HoledOut$Dir>.HOLEDOUT3”
- 4.03
- etc, etc.
- 4.03
- 7. Do the same as above to the file HOLEDOUT3, wherever the program
- loads a particular file, put the command<HoledOut$Dir>. in front of the
- filename.
- 4.03
- 8. Create a !Sprite file for the application icon and away you go!
- 4.03
- Then HoledOut should run as a RISC-OS application, and will also run off
- a Hard Drive (N.B. I used Holed Out Extra Courses 1)
- 4.03
- Explanation of !Run File:
- 4.03
- Line 1: Tells the computer to set a directory, and to enter it without
- changing the root directory whenever the <HoledOut$Dir> command is used.
- 4.03
- Line 2: Allocates the minimum and maximum amount of memory needed to
- run the application.
- 4.03
- Line 3: Tells the computer to look for the module MemAlloc in memory,
- if it isn’t found then it tells the computer where to find it and loads
- it.
- 4.03
- Lines 4-9: Tell the computer the memory settings the program needs.
- 4.03
- Line 10: Kills the module MemAlloc for more memory.
- 4.03
- Line 11: Runs the actual program.
- 4.03
- Pacmania:
- 4.03
- In this case, things are a little different. So do the following:
- 4.03
- 1. Format a new disc.
- 4.03
- 2. Create a new directory called !PacMania.
- 4.03
- 3. Copy all the files except !Boot into the new directory.
- 4.03
- 4. Use !Edit to create an Obey file containing the following...
- 4.03
- Set PacMania$Dir <Obey$Dir>
- 4.03
- Run <PacMania$Dir>.!RunLoad
- 4.03
- 5. Use the BASIC Editor to create a file called !RunLoad...
- 4.03
- 10 *Load <PacMania$Dir>.PacMania 10000
- 4.03
- 20 CALL &100000
- 4.03
- 6. Create an application !Sprite file.
- 4.03
- PacMania should then run as a RISC-OS application.
- 4.03
- So there we are, I’ve also used another command to help with the loading
- process. <Obey$Dir> and <(Application name)$Dir>. These two commands
- tell the computer where to find certain files, no matter where they are.
- (Hidden in directories on a hard drive for example.) Duncan Burbidge.
- 4.03
- • Getting Taxan 795 to work with Archimedes. The Taxan 795 is an
- excellent multi-sync colour monitor, but it was a bit unnerving, on
- unpacking and assembling my new A440 with VIDC Enhancer and 795 monitor,
- to be confronted with a screen which just would not synchronize! But,
- with help from Paul and from Atomwide, and with a lot of exploration, I
- think that I now know what screen modes it will support and how to get
- them.
- 4.03
- Initially, the trick is to set *CONFIGURE MONITORTYPE 1 and *CONFIGURE
- WIMPMODE20. Then the machine wakes up in the desktop in mode 20 whether
- or not the VIDC enhancer software (VIDCmodes for the 795) is installed,
- provided that (if it is not installed) the VIDC switch is ‘off’.
- However, if VIDCmodes is not installed, loading an application which
- changes the mode to one of the basic Archimedes modes (0-17) plunges you
- back into an unsynchronized screen. Therefore, my initial explorations
- were done with an ordinary monchrome monitor connected to the sync BNC
- socket, after changing two links on the circuit board − as explained on
- page 434 of the RISC-OS user guide. Options for all Acorn and Atomwide
- modes (except the high-resolution mono mode 23) are listed in the
- accompanying table. (See opposite.) Bill Mapleson.
- 4.03
- • Keywords in BASIC − I have found that PRINT ‘SHIFT F1’ showed a lower
- case underline ‘a’. From BASIC on pressing return to ‘PRINT’ the result
- I found a number that looked just like TIME. It was. SHIFT F2 gives
- HIMEM and SHIFT F3 = LOWMEM. No other Fkey gives a number, but they all
- act as quick entry keys for use in BASIC program writing within ARMB
- edit. They must be programmed with BASIC keyword token values.
- 4.03
- I expect this is widely known but here is the list for completeness.
- 4.03
- program segment missing
- 4.03
- Simon Anthony, Nottingham.
- 4.03
- • Locating screen coordinates − When writing wimp programs (out of
- desktop) it’s often hard to plot things because you’re not sure what the
- coordinates of the screen are. Using the program below, it is possible
- to do this.
- 4.03
- program segment missing
- 4.03
- I hope the program is of some use to wimp programmers. Duncan Burbidge.
- 4.03
- • MSDOS installation on hard disc − Here is a summary of the steps for
- getting an MSDOS partition installed onto a hard disc.
- 4.03
- 1. (This step applies only if you have an old PCEmulator, e.g. V1.20,
- and a V1.33 upgrade disc)
- 4.03
- (a) Read ‘ReadMe2’ on the V1.33 disc.
- 4.03
- (b) Run ‘MakePC’ on the V1.33 disc. (This copies the file !PC.Rom from
- the 1.20 disc to the 1.33 disc. Although the desktop displays this as a
- ‘text’ file, I reckon that in fact it is the emulator itself and that
- all the other files are concerned with preparing the Archimedes to run
- the Emulator.)
- 4.03
- 2. Read ‘ReadMe’ on V1.33 but don’t take too much notice of it − it
- confused me a lot!
- 4.03
- 3. Examine the files !PC.GenBoot.! Config and !PC.GenBoot.!Modules. If
- you have more than 1M of RAM, it may be worth changing some of the ‘Y’s
- to ’N’s in !Config. When I first tried it, without any changes, my
- screen went blank because my Taxan 795 monitor requires the VIDC
- Enhancer and the VIDCmodes software installed in order to synchronize
- when not in modes 18-21. With a 4M machines, I decided to make all the
- response ‘N’ and everything seemed OK.
- 4.03
- 4. If you have a SCSI hard disc (as I have), run !SCSIDisk. This
- renames !PC.SCSIRun2 to !PC.!Run2 and !PC.!Run2 to !PC.!ADSF[sic]Run2.
- That is, it makes !Run2 the file that defines where the MSDOS partition
- is to be placed − on a SCSI hard disc not on an ADFS one. !SCSIDisk
- then creates a file ‘PC.Drive_C’ on the SCSI disc of the size you
- request (1 to 32M). This file can be *TYPEd from the Archimedes command
- line − but don’t do it until everything is complete because its contents
- misled me! The screen then displays information for running two MSDOS
- commands: FDISK and HDINSTAL. It also displays the injunction ‘Press
- ESC’ to stop: Press RETURN to continue‘.
- 4.03
- 5. If you press <return>, the instructions are cleared from the screen;
- the PC Emulator is loaded, and you are invited to put the MSDOS boot
- disk into ‘DriveA’ (Drive0). Doing so, and pressing <return>, loads
- MSDOS which asks for date and time − but pressing <return> in response
- to each request supplies the information from the system clock. When
- the ‘A>’ prompt appears, you need to carry out the instructions that
- were recently wiped off the screen: Type ‘FDISK’, then ‘1’ to create a
- DOS partition, then ‘Y’ to assign all of file Drive_C to DOS: then
- ‘HDINSTAL’ which formats the hard disc and transfers the MSDOS system
- files from the floppy MSDOS boot disc to the hard disc.
- 4.03
- 6. If you press ESC (at the ‘ESC to stop, <return> to continue’
- injunction) and need to run !SCSIDisk again, beware that this will re-
- rename the !Run2 files. I avoided this by ‘Remming’ the *rename
- statements in !SCSIDisk.!RunImage. (This is a BASIC program from which
- it would appear that the procedure for installing MSDOS on an ADFS hard
- disc would be the same without the complication of renaming the !Run2
- files.)
- 4.03
- 7. Once MSDOS is safely on the hard disc, the !PC application can be
- transferred from the V1.33 disk to the PC directory on the hard disk.
- 4.03
- 8. One last complication fo me was that when I type ‘HDINSTAL’ I go the
- quaint message ‘insert new diskette in drive C’ and, on pressing
- <return>, ‘drive not read − format failure’. Eventually, after many
- hours and several phone calls, the explanation turned out to be that I
- have two external 5.1/4“ drives and MSDOS was seeing the second of these
- as Drive C and the SCSI hard disc as Drive D. To avoid amending
- HDINSTAL (which is a simple batch file) I told RISC-OS that it had only
- two floppy drives (*CONFIGURE FLOPPIES 2, followed by <ctrl-break>) and
- all went smoothly. Subsequently I reconfigured to three floppies and
- now MSDOS wakes up with a ‘D>’ prompt ready to run from the hard disc.
- The most useful tool for finding out what MSDOS thinks it has is to type
- CHKDSKA:.CHKDSKB: etc,
- 4.03
- 9. Finally, in RISC-OS, lock the ‘Drive_C’ file. I’m astonished that
- this is not done by the PCEmulator programs. Without it, a careless
- click in RISC-OS might destroy all your MSDOS files! Bill Mapleson.
- 4.03
- • Saving your configuration settings − I recently needed to change the
- batteries in my Archimedes but this meant that I would lose the
- configuration settings stored in the CMOS RAM. I managed to solve the
- problem by writing two small programs that saved and then restored the
- CMOS RAM settings to and from a file.
- 4.03
- program segment missing
- 4.03
- Sham Gardner, Karlsruhe (Germany).
- 4.03
- (The other way of doing it is to open the computer, switch the computer
- on, change the batteries, switch off and then put the computer back
- together again − but I dare not suggest that you should do that because
- someone might stick a screwdriver into the heavily protected p.s.u. and
- I’d get blames − so I didn’t suggest it, OK? Ed.)
- 4.03
- • Wimpslotting warning. Always give the maximum amount of memory your
- program is going to use. Otherwise, the computer will eat up all the
- available memory and use it for the program and you can’t get the memory
- back unless you quit the application! This happens in FormEd (All
- versions, I would assume). The FormEd !Run file contains the line:
- 4.03
- WimpSlot -min 288k
- 4.03
- Using !Edit, change this line to...
- 4.03
- WimpSlot -min 288k -max 288k
- 4.03
- The program will then run, using up less memory, meaning that both
- !FormEd and !Paint can run at the same time on a 1M machine. You have
- been warned. Duncan Burbidge.
- 4.03
-
-
-